package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ExpProductsManagerMapper;
import com.ruoyi.system.domain.ExpProductsManager;
import com.ruoyi.system.service.IExpProductsManagerService;

/**
 * 实验成品信息Service业务层处理
 * 
 * @author kk
 * @date 2023-06-20
 */
@Service
public class ExpProductsManagerServiceImpl implements IExpProductsManagerService 
{
    @Autowired
    private ExpProductsManagerMapper expProductsManagerMapper;

    /**
     * 查询实验成品信息
     * 
     * @param sampID 实验成品信息主键
     * @return 实验成品信息
     */
    @Override
    public ExpProductsManager selectExpProductsManagerBySampID(String sampID)
    {
        return expProductsManagerMapper.selectExpProductsManagerBySampID(sampID);
    }

    /**
     * 查询实验成品信息列表
     * 
     * @param expProductsManager 实验成品信息
     * @return 实验成品信息
     */
    @Override
    public List<ExpProductsManager> selectExpProductsManagerList(ExpProductsManager expProductsManager)
    {
        return expProductsManagerMapper.selectExpProductsManagerList(expProductsManager);
    }

    /**
     * 新增实验成品信息
     * 
     * @param expProductsManager 实验成品信息
     * @return 结果
     */
    @Override
    public int insertExpProductsManager(ExpProductsManager expProductsManager)
    {
        return expProductsManagerMapper.insertExpProductsManager(expProductsManager);
    }

    /**
     * 修改实验成品信息
     * 
     * @param expProductsManager 实验成品信息
     * @return 结果
     */
    @Override
    public int updateExpProductsManager(ExpProductsManager expProductsManager)
    {
        return expProductsManagerMapper.updateExpProductsManager(expProductsManager);
    }

    /**
     * 批量删除实验成品信息
     * 
     * @param sampIDs 需要删除的实验成品信息主键
     * @return 结果
     */
    @Override
    public int deleteExpProductsManagerBySampIDs(String[] sampIDs)
    {
        return expProductsManagerMapper.deleteExpProductsManagerBySampIDs(sampIDs);
    }

    /**
     * 删除实验成品信息信息
     * 
     * @param sampID 实验成品信息主键
     * @return 结果
     */
    @Override
    public int deleteExpProductsManagerBySampID(String sampID)
    {
        return expProductsManagerMapper.deleteExpProductsManagerBySampID(sampID);
    }
}
